import { defineStore } from 'pinia';
import { ref } from 'vue';

export const useRememberInfoStore = defineStore('rememberInfo', () => {
  const rememberInfo = ref('');
  const setRememberInfo = val => {
    rememberInfo.value = val;
  };

  const removeRememberInfo = () => {
    rememberInfo.value = '';
  };

  return { rememberInfo, setRememberInfo, removeRememberInfo };
}, { persist: true });
